<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>Javascript 变量</title>
</head>
<body>
<h1>JavaScript 数据类型</h1>
<p>字符串用引号包围。</p>
<p>数值不用引号包围。</p>

<p id="demo"></p>

<script>
  var pi = 3.14;
  var person = "Bill Gates";
  var answer = 'How are you!';
  document.getElementById("demo").innerHTML=pi+"<br>"+person+"<br>"+answer;
</script>
</body>
</html>